package com.threeti.mecool.web.form;

import com.threeti.mecool.core.domain.model.acl.PermissionRole;
import com.threeti.mecool.framework.web.form.AbstractSearchCriteriaForm;
import org.dozer.Mapping;

import java.util.List;

public class UserForm extends AbstractSearchCriteriaForm {
    private String loginName;

    private String displayName;

    private String password;

    @Mapping("permissionRole.id")
    private String roleIdSlt;

    private String oldRoleId;

    private List<PermissionRole> permissionRoles;

    @Mapping("employee.empId")
    private String orgnizationEmployee;

    @Mapping("employee.name")
    private String employeeName;

    private String imei;

    private int disableImeiValidate;

    public void setOrgnizationEmployee(String orgnizationEmployee) {
        this.orgnizationEmployee = orgnizationEmployee;
    }

    public String getOrgnizationEmployee() {
        return orgnizationEmployee;
    }

    public void setPermissionRoles(List<PermissionRole> permissionRoles) {
        this.permissionRoles = permissionRoles;
    }

    public List<PermissionRole> getPermissionRoles() {
        return permissionRoles;
    }

    public String getLoginName() {
        return loginName;
    }

    public void setLoginName(String loginName) {
        this.loginName = loginName;
    }

    public String getDisplayName() {
        return displayName;
    }

    public void setDisplayName(String displayName) {
        this.displayName = displayName;
    }

    public String getPassword() {
        return password;
    }

    public void setPassword(String password) {
        this.password = password;
    }

    public List<PermissionRole> getRoles() {
        return permissionRoles;
    }

    public void setRoles(List<PermissionRole> permissionRoles) {
        this.permissionRoles = permissionRoles;
    }

    public String getRoleIdSlt() {
        return roleIdSlt;
    }

    public void setRoleIdSlt(String roleIdSlt) {
        this.roleIdSlt = roleIdSlt;
    }

    public void setEmployeeName(String employeeName) {
        this.employeeName = employeeName;
    }

    public String getEmployeeName() {
        return employeeName;
    }

    public String getOldRoleId() {
        return oldRoleId;
    }

    public void setOldRoleId(String oldRoleId) {
        this.oldRoleId = oldRoleId;
    }

    public String getImei() {
        return imei;
    }

    public void setImei(String imei) {
        this.imei = imei;
    }

    public int getDisableImeiValidate() {
        return disableImeiValidate;
    }

    public void setDisableImeiValidate(int disableImeiValidate) {
        this.disableImeiValidate = disableImeiValidate;
    }
}
